from myelin.Ns import MYELIN_ONTOLOGY as MYELIN, FOAF
from myelin.rdf.bindery.ObjectTypes import LiteralTypeO

from Resource import Resource

from ObjectTypes import \
    UserPreferencesTypeO, UserPreferencesTypeS, \
    UserAccountTypeO
    
from mappings import \
    UserPreferencesMap

class UserPreferences(Resource):
    
    ModelTypes = (UserPreferencesTypeO, UserPreferencesTypeS)
    
    RDF_BINDINGS = {
        'mTag'              : ((MYELIN, 'tag'), LiteralTypeO, UserPreferencesMap),
        'mTheme'            : ((MYELIN, 'theme'), LiteralTypeO, UserPreferencesMap),
        'mLocale'           : ((MYELIN, 'locale'), LiteralTypeO, UserPreferencesMap),
        'mPreferences_For'  : ((MYELIN, 'preferences-for'), UserAccountTypeO, UserPreferencesMap),
    }

    
CLASS_TYPES = {
    MYELIN + 'UserPreferences' : UserPreferences,
}